package com.yu.demo.commons.enums;

/**
 * @Description: 成功返回
 * @Author: WengYu
 */
public enum SuccessResultEnum implements ResultInterface {

    SERVER_SUCCESS(20000,"success");
    private Integer code;

    private String message;

    SuccessResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
